package com.example.demo.exception;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @Author hweiyu
 * @Description
 * @Date 2022/6/28 17:31
 */
@Getter
@AllArgsConstructor
public enum ErrorCode implements Error {

    UNKNOWN(1000, "未知异常"),

    SELECT_DATA_ERROR(1001, "请选择数据"),

    ONLY_ONE_DATA_ERROR(1002, "请选择一条数据"),

    ;

    private int code;

    private String msg;
}
